package com.yunti.springboot.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.yunti.springboot.po.User;
import com.yunti.springboot.vo.Result;
import com.yunti.springboot.vo.req.*;
import org.springframework.stereotype.Service;

/**
 * @author Administrator
 */
@Service
public interface UserService extends IService<User> {

    Result login(UserLoginReq userLoginReq);

    Result device_login(UserLoginReq userLoginReq);

    Result register(RegisterParmReq registerParm);

    Result updateUserById(UpdateUserReq updateUserReq);

    Result getUserListPage(UserSearchReq userSearchReq);

    Result updatePassword(UpdatePasswordReq updatePasswordReq);

    Result updateNickName(UpdateNickNameReq updateNickNameReq);

    Result deleteUser(Integer id);

    Result getChildrenUserList(UserSearchReq userSearchReq);

    Result getLoginInfo();

    Result changSwitch(Integer id, String type);

    Result checkLogin(String token);
}
